#!/bin/bash
# Exp Symbolic Regression
# Pull argument
if [ -z "$2" ]; then 	# See if number of runs specified
	echo "Run once by default"
	nrun=1
else
    nrun=$2
	echo "Number of runs: "$nrun
fi	
if [ -z "$1" ]; then 	# -n tests to see if the argument is non empty
	echo "Please specify the problem preix"
else
    # define expnames
    exp9=$1.0301.p2
    exp0=$1.0301
    exp1=$1.0401
    exp2=$1.0402
    exp3=$1.0403
    exp5=$1.0405
    exp6=$1.0406
    # Run all experiments
    ./runreg.sh $exp9 $nrun
    #./runreg.sh $exp0 $nrun
    ./runreg.sh $exp1 $nrun
    ./runreg.sh $exp2 $nrun
    ./runreg.sh $exp3 $nrun
    ./runreg.sh $exp5 $nrun
    ./runreg.sh $exp6 $nrun
fi
#
